package com.westos.userauth.dao.impl;

import com.westos.userauth.dao.SecurityPermissionDao;
import com.westos.userauth.dao.mybatis.SecurityPermissionDAO;
import com.westos.userauth.domain.SecurityPermission;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

//zpc
@Repository
public class MybatisSecurityPermissionDao implements SecurityPermissionDao {
    @Autowired
    private SecurityPermissionDAO securityPermissionDAO;

    @Override
    public int deletePermission(String permissionId) {
        return 0;
    }

    //创建权限 (zpc)
    @Override
    public int createSecurityPermission(SecurityPermission securityPermission) {
        return securityPermissionDAO.createSecurityPermission(securityPermission);
       // return 1;
    }

    //修改权限 (zpc)
    @Override
    public int updateSecurityPermission(SecurityPermission securityPermission) {
        return securityPermissionDAO.updateSecurityPermission(securityPermission);
        //return 1;
    }



}
